package day13;

public class Inheritence {
	
	public static void main(String[] args) {
		A b = new B("B", 10);
		A c = new C("C", 20);
		
		System.out.println(b.getName() + " ==> " + b.getAge() );
		System.out.println(c.getName() + " ==> " + c.getAge() );
		
		b.setAge(12);
		System.out.println(b.getName() + " ==> " + b.getAge() );
		
	}
}
